#include <stdio.h>
#include <stdlib.h>

char* allocMem(int n);
void encipher(char *ca, int n);
void printCharArr(char *ca, int n);

int main(void)
{
    int n = 5;

    char *ca = allocMem(n + 1);
    
    for (int i = 0; i < n; i ++)
    {
        scanf("%c", &ca[i]);
    }
    ca[n] = '\0';

    printCharArr(ca, n);

    encipher(ca, n);

    printCharArr(ca, n);

    if (NULL != ca)
    {
        free(ca);
        ca = NULL;
    }

    return 0;
}

char* allocMem(int n)
{
    return (char*)malloc(sizeof(char) * n);
}

void encipher(char *ca, int n)
{
    for (int i = 0; i < n; i ++)
    {
        if (ca[i] >= 'a' && ca[i] <= 'z')
        {
            ca[i] = (ca[i] + 2 - 'a' + 1) % 26 + 'a' - 1;
        }
        else if (ca[i] >= 'A' && ca[i] <= 'Z')
        {
            ca[i] = (ca[i] + 2 - 'A' + 1) % 26 + 'A' - 1;
        }
        else
        {
            ;
        }
    }
}

void printCharArr(char *ca, int n)
{
    for (int i = 0; i < n; i ++)
        putc(ca[i], stdout);
    printf("\n");
}
